#pragma once
#include "dcl_ModelExportWord.h"
#include <iosfwd>
#include <algorithm>
#include <vector>
using namespace std;

class DEF_MODELEXPORTWORLD CWordInterface
{
public:
	CWordInterface(void);
	~CWordInterface(void);

	void OpenWdApplication();
	bool QuitWdApplication();
	void Release();
	bool OpenDocTemplete(CString filePath);
	bool SaveAndQuit(CString newFilePath);
	bool Quit();

	void AddCatalog();
	void UpdateCatalog();
	void AddCover();
	void AddTitle(CString sTitle,WdBuiltinStyle nStyle);
	void AddParagraph(CString sContent);
	void AddExcelTable(CString sTableName,vector<vector<CString>> vecContent);
	void AddCaption(CString sLable,CString sTitle,bool bShowChapter);

	void AddWordContent(CString filePath);
	void AddPicture(CString sPicName,CString filePath);
};

